<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="css/styles.css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/articleDetails.js"></script>
  </head>
  <body>
  	<form action="publishDownLoadAction.action" method="post">
		<fieldset>
			<legend>通过审批的稿件，点击"下载"可以以ZIP文件的格式获得通过的稿件</legend>
			
				<table style="width: 600px; margin-top: 15px;">
				<tr>
					<th>
						中文名称
					</th>
					<th>
						英文名称
					</th>
					<th>
						用户姓名
					</th>
					<th>
						分类
					</th>
					<th>
						详细信息
					</th>
					<th>
						选择
					</th>
				</tr>	
				<c:choose>
					<c:when test="${empty articleList}">
						<tr>
							<td colspan="7">
								目前没有稿件
							</td>
						</tr>
					</c:when>
					
					<c:otherwise>
						<c:forEach items="${articleList}" var="articleInfo">
							<tr onmouseover="this.className='mouseOver'" onmouseout="this.className='mouseOut'">
								<td>${articleInfo.chinaName}</td>
								<td>${articleInfo.englishName}</td>
								<td>${articleInfo.userInfo.userName}</td>
								<td>${articleInfo.categoryInfo.name}</td>
								<td><a href="javascript:void(0)" onclick="showNewWindow('${articleInfo.AId}')">详细信息</a></td>
								<td><input type="checkbox" name="articleId" checked="checked" value="${articleInfo.AId}"> </td>
							</tr>
						</c:forEach>
					</c:otherwise>
				</c:choose>
			</table>
		
				
			<div style="text-align:center;margin-bottom:10px" >
			 <span style="margin-left:300px">第${page.currentPage} /${page.totalPage}页</span>
			 <span style="margin-left:5px"><a href="getArticleListPassedAction.action?currentPage=1&totalPage=${page.totalPage }" class="page"> 首页 </a></span>
			 <span style="margin-left:5px"><a href="getArticleListPassedAction.action?currentPage=${page.currentPage-1}&totalPage=${page.totalPage }" class="page"> 上一页 </a></span>
			 <span style="margin-left:5px"><a href="getArticleListPassedAction.action?currentPage=${page.currentPage+1}&totalPage=${page.totalPage }" class="page"> 下一页 </a></span>
			 <span style="margin-left:5px"><a  class="page" href="getArticleListPassedAction.action?currentPage=${page.totalPage}&totalPage=${page.totalPage }"> 末页 </a></span>
			</div>
			
			
			<input type="submit" value="下载" style="height:20px;margin-left:50px">
	


	
		</fieldset>
			</form>
  </body>
</html>
